export async function getDeviceInfo(): Promise<string> {
  try {
    const ua = navigator.userAgent;
    const platform = navigator.platform;
    const screenRes = `${window.screen.width}x${window.screen.height}`;
    const deviceInfo = {
      userAgent: ua,
      platform,
      screen: screenRes,
      language: navigator.language
    };
    return JSON.stringify(deviceInfo);
  } catch (e) {
    return '';
  }
} 